package com.wyz.novembermall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 想要使用OpenFeign远程调用
 * 1.引入open-feign依赖
 * 2.编写一个接口，告诉SpringCloud这个接口需要调用远程服务
 * 3.声明接口CouponFeignService每一个方法调用远程服务命以及请求路径接口等
 * 4.开启远程调用功能 @EnableFeignClients(basePackages = "com.wyz.novembermall.member.feign")
 */

@EnableFeignClients(basePackages = "com.wyz.novembermall.member.feign")
@EnableDiscoveryClient
@SpringBootApplication
public class NovembermallMemberApplication {

	public static void main(String[] args) {
		SpringApplication.run(NovembermallMemberApplication.class, args);
	}

}
